from Goldenberry.optimization.ga.GbMutatorMgr.BinaryMutators import OneBitBinaryMutation 
class MutatorContext(object):
    """description of class"""
    curr_mutation_str = None

    def __init__(self):
       self.curr_mutation_str = OneBitBinaryMutation()

    def mutate(self, individual, prob):
        return self.curr_mutation_str.mutate(individual, prob) 

    def set_curr_mutation_str(self, strategy):
        self.curr_mutation_str = strategy


